home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1999 August
/
Chip_1999-08_cd.bin
/
sharewar
/
htmltool
/
_SETUP.1
/
Fake Counter.scp
< prev
next >
Wrap
Text File
|
1998-04-12
|
722b
|
29 lines
<HTMLtool>Fake counter that displays random values</HTMLtool>
<!-- TWO STEPS TO INSTALL FAKE COUNTER:
1. Paste the coding into the HEAD of your HTML document
2. Copy the last coding into the BODY of your HTML document -->
<!-- STEP ONE: Copy this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var ran
ran = Math.round(Math.random()*50000)
function alertUser() {
alert("You are visitor number " + ran + " to this page.")
}
// End -->
</SCRIPT>
<!-- STEP TWO: Copy this last code into the HEAD of your HTML document -->
<BODY>
<CENTER>
<FORM>
<INPUT TYPE="button" VALUE="How many visits?" ONCLICK="alertUser()">
</FORM>
</CENTER>